//
//  YXImageScrollView.h
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/17.
//

#import <UIKit/UIKit.h>
#import "YXImage.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, YXScrollImageType) {
    YXScrollImageTypeNone,
    YXScrollImageTypeOriginal,
    YXScrollImageTypeCompressed,
    YXScrollImageTypeThumb
};

@interface YXImageScrollView : UIScrollView

- (void)yx_setImage:(__kindof UIImage *)image type:(YXScrollImageType)type;

@property (nonatomic, strong, readonly) YYAnimatedImageView *imageView;

@property (nonatomic, assign) YXScrollImageType imageType;

- (void)reset;

@end

NS_ASSUME_NONNULL_END
